package net.NingXiaRuiTai.ShortChain.exception;

import com.baomidou.mybatisplus.extension.api.R;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import net.NingXiaRuiTai.ShortChain.enums.BizCodeEnum;
@Data

public class BizeException extends RuntimeException {

	private int code;
	private String msg;

	public BizeException(BizCodeEnum bizCodeEnum) {
		super(bizCodeEnum.getMessage());
		this.code = bizCodeEnum.getCode();
		this.msg = bizCodeEnum.getMessage();
	}
}
